// 商品相关的接口
import request from "@/utils/request";

// 获取商品分类信息
export const getCategory = (id) => request('/category','get',{ id })

// 获取关键字搜索商品
export const getSearchGoods = (data) => request('/search/all','post',data)

// 获取商品详情
export const getGoods = (id) => request('/goods','get',{ id })